package literary.fuwenhao.com.myapplication;

import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;

public class MainActivity extends AppCompatActivity {
    Intent intent;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);

    }

    public void btn1(View view) {
        intent=new Intent(this,Main2Activity.class);
        intent.putExtra("type",1);
        startActivity(intent);
    }

    public void btn2(View view) {
        intent=new Intent(this,Main3Activity.class);
        intent.putExtra("type",2);
        startActivity(intent);
    }
}
